package com.wuc.test.client;

import java.util.Map;

import com.wuc.client.WucEventClient;
import com.wuc.client.domain.MapList;

public class EventDemo {

	public static void main(String[] args) {
		WucEventClient client = new WucEventClient("http://127.0.0.1:8090/wuc", "F59BD65F7EDAFB087A81D4DCA06C4910",
				"apiUser", "111111");
		System.out.println(client.isLive());
		MapList list = client.getObjEvents("40289f787a0f2b71017a12e36c560032", "LOGIN_USER", "sysadmin", "OPRETOR", 10,
				1);
		System.out.println(list.getAllNum());
//		list.getList().stream().forEach(new Consumer<Map<String, Object>>() {
//			@Override
//			public void accept(Map<String, Object> t) {
//				System.out.println(t);
//			}
//		});
		Map<String, Object> info = client.getEventObjInfo("40289f787a0f2b71017a12e36c560032", "LOGIN_USER", "sysadmin");
		System.out.println(info);
		client.deleteEventData("40289f787a0f2b71017a12e36c560032", "LOGIN_USER", "7136410d946f4d3293b047879d7f0b77");
	}

}
